package cn.boat.router.consumer;

public class OldNewPartitionLeader {
    private String consumerid ;
    private String topic;
    private int oldLeader;
    private int newLeader;

    public OldNewPartitionLeader() {
        consumerid ="";
        topic ="";
        oldLeader =0;
        newLeader =0;
    }

    public void set(String consumerid,String topic,int oldLeader,int newLeader){
        this.consumerid =consumerid;
        this.topic =topic;
        this.oldLeader = oldLeader;
        this.newLeader = newLeader;
    }
    @Override
    public String toString() {
        return "OldNewPartitionLeader{" +
                "consumerid='" + consumerid + '\'' +
                ", topic='" + topic + '\'' +
                ", oldLeader=" + oldLeader +
                ", newLeader=" + newLeader +
                '}';
    }

    public String getConsumerid() {
        return consumerid;
    }

    public void setConsumerid(String consumerid) {
        this.consumerid = consumerid;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public int getOldLeader() {
        return oldLeader;
    }

    public void setOldLeader(int oldLeader) {
        this.oldLeader = oldLeader;
    }

    public int getNewLeader() {
        return newLeader;
    }

    public void setNewLeader(int newLeader) {
        this.newLeader = newLeader;
    }
}
